package main

import "fmt"

func myFuc(a, b, c chan int) {
	number := 3
	for {
		select {
		case a <- number:
			fmt.Println("a = ", a)
		case <-b:
			fmt.Println("b = ", b)
		case <-c:
			fmt.Println("c = ", c)
		}
	}
}

func main() {
	a := make(chan int, 1)
	b := make(chan int, 2)
	c := make(chan int, 3)

	go myFuc(a, b, c)

	for i := 0; i < 1; i++ {
		b <- 1
	}

	for {

	}

}
